﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Pc_Vision.Model
{
    public class Product
    {
        public string name, rating, articleNumber, buyIn, sellPrice, actionPrice, weight, productDescription, systemType, processor, memory, storage, opticalDisk, display, videoCard, networkCard, battery, dimension, warranty, inStock,categorieID;

        public string Name
        {

            set { this.name = name; }

            get { return this.name; }
        }

        public string ArticleNumber
        {

            set { this.articleNumber = articleNumber; }

            get { return this.articleNumber; }
        }

        public string BuyIn
        {

            set { this.buyIn = buyIn; }

            get { return this.buyIn; }
        }

        public string InStock
        {

            set { this.inStock = inStock; }

            get { return this.inStock; }
        }

        public string ProductDescription
        {

            set { this.productDescription = productDescription; }

            get { return this.productDescription; }
        }

        public string SystemType
        {

            set { this.systemType = systemType; }

            get { return this.systemType; }
        }

        public string Processor
        {

            set { this.processor = processor; }

            get { return this.processor; }
        }

        public string Memory
        {

            set { this.memory = memory; }

            get { return this.memory; }
        }

        public string Storage
        {

            set { this.storage = storage; }

            get { return this.storage; }
        }

        public string OpticalDisk
        {

            set { this.opticalDisk = opticalDisk; }

            get { return this.opticalDisk; }
        }

        public string Display
        {

            set { this.display = display; }

            get { return this.display; }
        }


        public string VideoCard
        {

            set { this.videoCard = videoCard; }

            get { return this.videoCard; }
        }

        public string NetworkCard
        {

            set { this.networkCard = networkCard; }

            get { return this.networkCard; }
        }

        public string Battery
        {

            set { this.battery = battery; }

            get { return this.battery; }
        }

        public string Dimension
        {

            set { this.dimension = dimension; }

            get { return this.dimension; }
        }

        public string Weight
        {

            set { this.weight = weight; }

            get { return this.weight; }
        }

        public string Warranty
        {

            set { this.battery = battery; }

            get { return this.warranty; }
        }

        public string ActionPrice
        {

            set { this.actionPrice = actionPrice; }

            get { return this.actionPrice; }
        }

        public string Rating
        {
            set { this.rating = rating; }
            get { return this.rating; }
        }
        public String CategorieID
        {

            set { this.categorieID = categorieID; }

            get { return this.categorieID; }
        }

        public void fn_ReturnProduct()
        {

            DAOFactorys.DAOproduct product = new DAOFactorys.DAOproduct();
            product.InsertProduct(this);

        }

       



    }
}